#!/bin/sh
#删除容器
docker container stop zhanshop-clouds
docker container rm zhanshop-clouds

docker build -f ./Dockerfile -t zhanshop-clouds:v1 ./

cd ../
dirpath=$(cd $(dirname $0);pwd)

# 就这样就有了
docker run --name zhanshop-clouds -v $dirpath:/var/www -p 8202:8202/tcp -p 8280:8280/tcp --restart=always zhanshop-clouds:v1 &
